<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <script src="/static/js/jquery-3.7.0.js"></script>
    <script>
        $(document).ready(function(){
            $("button").click(function(){
                let a = $("#p1").attr("data-fictionId");
                console.log(a);
            });
        });
    </script>
</head>

<body>

<div id="div1" style="height:100px;width:300px;border:1px solid black;background-color:yellow;">
    This is some text in the div.
    <p id="p1" data-fictionId="111">This is a paragraph in the div.</p>
    <p>This is another paragraph in the div.</p>
</div>

<br>
<button>删除 div 元素</button>

</body>
</html>
